using System;
using UnityEngine;

namespace Dto
{
    [Serializable]
    public class ReqBase
    {
        /**
         * code
         */
        public int code { get; set; }
        
        public int subCode { get; set; }
        /**
         * message
         */
        public object message { get; set; }

        public ReqBase()
        {
        }
        

        public ReqBase(int code)
        {
            this.code = code;
        }

        public ReqBase(int code, int subCode)
        {
            this.code = code;
            this.subCode = subCode;
        }

        public ReqBase(int code, int subCode, object message)
        {
            this.code = code;
            this.subCode = subCode;
            this.message = message;
        }

        public void Change(int code, int subCode, object message)
        {
            this.code = code;
            this.subCode = subCode;
            this.message = message;
        }
        
        public void Change(int subCode, object message)
        {
            this.subCode = subCode;
            this.message = message;
        }
        public void Change(object message)
        {
            this.message = message;
        }
        
    }
}